package com.conception.designpattern.patterninterface;

public class Employee {
	
	ISalaryCalculator salaryCalculator; 
	String name; 
	
	public Employee(final String name,final ISalaryCalculator salaryCalculator){
		this.name = name;
		this.salaryCalculator = salaryCalculator;
	}
	
	public void display(){
		System.out.println("Name=" +name);
		System.out.println("Salary=" +salaryCalculator.getSalary() );
	}

}
